package org.rkuk.kasutil.test.system 
{
	import org.rkuk.kasutil.test.system.handler.Handler;
	import org.rkuk.kasutil.test.system.stack.HandlerStack;
	import org.rkuk.kasutil.test.framework.TestCase;
	/**
	 * ...
	 * @author rkuk
	 */
	public class TestContext 
	{
		private var testCase_:TestCase;
		private var handlerStack_:HandlerStack;
		
		public function TestContext(testCase:TestCase,handlerStack:HandlerStack) 
		{
			testCase_ = testCase;
			handlerStack_ = handlerStack;
		}
		
		public function get testClass():Class
		{
			return testCase_.testClass;
		}
		
		public function get testObject():Object
		{
			return testCase_.testObject;
		}
		
		public function pushHandlerToStack(handler:Handler):void
		{
			handlerStack_.pushHandler(handler);
		}
	}

}